package demo7;

import org.springframework.stereotype.Component;

@Component  //交给spring容器管理  key:tiger  value:反射后的对象
public class Tiger implements Pet {
    @Override
    public void hello() {
        System.out.println("wo cao ：sha wan yi!");
        System.out.println("虎年吃猪肉");
    }
}
